﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ajayumi.Platform.Search.Win
{
    /// <summary>
    /// SearchDateTimePicker.cs
    /// Author   : 黄乙冬
    /// Date     : 2011-09-26
    /// </summary>
    public partial class SearchDateTimePicker : SearchControlBase
    {
        public override string DisplayText
        {
            set
            {
                this.label1.Text = value;
            }
        }

        public SearchDateTimePicker()
        {
            InitializeComponent();
        }

        internal override SearchItemValue GetSearchItemValue()
        {
            return new SearchItemValue()
            {
                ItemIndex = this.ItemIndex,
                Value1 = this.dateTimePicker1.Value.ToString("yyyy-MM-dd")
            };
        }
    }
}
